<template>
	<view class="content">
		<view :class="[Tabindex==0?'active':'']" @tap="chageIndex(0)">精选</view>
		<view :class="[Tabindex==1?'active':'']" @tap="chageIndex(1)">每周推荐</view>
	</view>
</template>

<script>
	export default {
		name: 'IndexTab',
		props:{
			Tabindex: Number
		},
		data:function() {
			return {
				
			}
		},
		methods:{
			chageIndex(index) {
				this.$emit('changeIndexTap',index)
			}
		},
	}
</script>

<style scoped>
	.content {
		display: flex;
		background: #fff;
	}
	.content>view{
		padding: 15px 25px 25px;
	}
	.active{
		color:#0099CC ;
	}
</style>
